<template>
	<view>
		<view style="height: 90px;" class="flex justify-center align-center" v-if="JSON.stringify(address)==='{}'">
			<button type="primary" size="mini" @click="chooseAddress">请选择收货地址+</button>
		</view>
		<view v-else style="font-size: 12px;height: 90px;" class="flex flex-column justify-center px-1">
			<view class="flex justify-between align-center">
				<view>收货人:<text>ecook</text></view>
				<view class="flex justify-center align-center">
					<view class="mr-1">电话:
						<text>138XXXX5555</text>
					</view>
					<uni-icons type="arrowright" size="16"></uni-icons>
				</view>
			</view>
			<view class="flex align-center mt-2">
				<view style="white-space: nowrap;">收货地址:</view>
				<view>河北省邯郸市肥乡区xxx 河北省邯郸市肥乡区xxx 河北
					省邯郸市肥乡区xxx 河北省邯郸市肥乡区xxx</view>

			</view>
		</view>
		<image src="../../static/cart_border@2x.png" style="display: block;height: 5px;width: 100%;"></image>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';

	const address = ref({})

	const chooseAddress = async () => {
		uni.navigateTo({
			url: "/pages/opendb-city-china/add"
		})
		console.log("res");
	}
</script>

<style>

</style>